package com.qingcloud.adminbackend.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qingcloud.adminbackend.entity.stationgroup.SysStationGroupEquipment;
import com.qingcloud.adminbackend.mapper.SysStationGroupEquipmentMapper;
import com.qingcloud.adminbackend.service.ISysStationGroupEquipmentService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 设备组和设备关系表 服务实现类
 * </p>
 *
 * @author luozehua
 * @since 2018-11-16
 */
@Service
public class SysStationGroupEquipmentServiceImpl extends ServiceImpl<SysStationGroupEquipmentMapper, SysStationGroupEquipment> implements ISysStationGroupEquipmentService {

    @Resource
    private SysStationGroupEquipmentMapper sysStationGroupEquipmentMapper;

    @Override
    @Transactional
    public Boolean removeByGroupIds(List<String> groupIds) {
        return sysStationGroupEquipmentMapper.removeByGroupIds(groupIds) > 0 ? true : false;

    }
}
